import { ref } from 'vue'

export const usePopup = () => {
  const show = ref(false)

  const open = () => {
    show.value = true
  }

  const close = () => {
    show.value = false
  }

  return {
    show,
    open,
    close
  }
}
